home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 October
/
EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso
/
Aminet
/
util
/
gnu
/
bison_1_22.lha
/
bison-1.22
/
SMakefile
< prev
next >
Wrap
Makefile
|
1995-01-20
|
6KB
|
199 lines
# Makefile for bison
# Copyright (C) 1988, 1989, 1991, 1993 Bob Corbett and Free Software Foundation, Inc.
#
# This file is part of Bison, the GNU Compiler Compiler.
#
# Bison is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# Bison is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Bison; see the file COPYING. If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
#### Start of system configuration section. ####
srcdir = .
VPATH =
CC = sc
WMERGE = wmerge
INSTALL = copy clone
INSTALL_PROGRAM =
INSTALL_DATA =
MAKEINFO = makeinfo
# Things you might add to DEFS:
# STDC_HEADERS If you have ANSI C headers and libraries.
# HAVE_STRING_H If you don't have ANSI C headers but have string.h.
# HAVE_MEMORY_H If you don't have ANSI C headers and have memory.h.
# HAVE_STRERROR If you have strerror function.
DEFS = define=_STRICT_ANSI define=STDC_HEADERS
CFLAGS = optimize noicons
LDFLAGS =
LIBS =
# Some System V machines do not come with libPW. If this is true, use
# the GNU alloca.o here.
ALLOCA = ansialloca.o
prefix = Programmer:other
exec_prefix = $(prefix)
# where the installed binary goes
bindir = $(exec_prefix)/bin
# where the parsers go
datadir = $(prefix)/lib
# where the info files go
infodir = $(prefix)/info
# where manual pages go and what their extensions should be
mandir = $(prefix)/man/man$(manext)
manext = 1
#### End of system configuration section. ####
DISTFILES = COPYING ChangeLog Makefile.in configure configure.in \
REFERENCES bison.1 bison.rnh configure.bat \
bison.simple bison.hairy \
LR0.c allocate.c closure.c conflicts.c derives.c \
files.c getargs.c gram.c lalr.c lex.c main.c nullable.c \
output.c print.c reader.c reduce.c symtab.c version.c \
warshall.c files.h gram.h lex.h machine.h new.h state.h \
symtab.h system.h types.h bison.cld build.com vmsgetargs.c \
vmshlp.mar README INSTALL bison.texinfo bison.info* texinfo.tex \
getopt.c getopt.h getopt1.c alloca.c mkinstalldirs
# This rule allows us to supply the necessary -D options
# in addition to whatever the user asks for.
.c.o:
$(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) $<
# names of parser files
PFILE = bison.simple
PFILE1 = bison.hairy
PFILES = define=XPFILE="$(datadir)/$(PFILE)" \
define=XPFILE1="$(datadir)/$(PFILE1)"
OBJECTS = ansiLR0.o ansiallocate.o ansiclosure.o ansiconflicts.o \
ansiderives.o ansifiles.o ansigetargs.o ansigram.o\
ansilalr.o ansilex.o ansimain.o ansinullable.o \
ansioutput.o ansiprint.o ansireader.o ansireduce.o ansisymtab.o \
ansiwarshall.o version.o ansigetopt.o getopt1.o $(ALLOCA)
all: bison
clean:
-delete \#?.(bak|o|lnk) ansi\#?
veryclean: clean
-delete bison bison.s1
bison: $(OBJECTS)
$(CC) $(LDFLAGS) link to $@ $(OBJECTS) $(LIBS)
install: bison ansibison.simple bison.hairy $(ALLOCA)
$(INSTALL) bison $(bindir)
$(INSTALL) ansibison.simple bison.hairy $(datadir)/bison.simple
$(INSTALL) $(ALLOCA) $(datadir)/alloca.o
ansibison.simple: bison.simple bison.sch
$(WMERGE) bison.simple bison.sch ansibison.simple
# This file is different to pass the parser file names to the compiler.
ansifiles.o: ansifiles.c
$(CC) $(PFILES) $(DEFS) $(CPPFLAGS) $(CFLAGS) \
$(srcdir)/ansifiles.c $(OUTPUT_OPTION)
ansifiles.c: files.c files.ch system.h files.h ansinew.h gram.h
$(WMERGE) files.c files.ch ansifiles.c
ansinew.h: new.h new.hch
$(WMERGE) new.h new.hch ansinew.h
ansialloca.o: ansialloca.c
ansialloca.c: alloca.c alloca.ch
$(WMERGE) alloca.c alloca.ch ansialloca.c
ansiallocate.o: ansiallocate.c
ansiallocate.c: allocate.c allocate.ch
$(WMERGE) allocate.c allocate.ch ansiallocate.c
ansiclosure.o: ansiclosure.c
ansiclosure.c: closure.c closure.ch system.h machine.h ansinew.h gram.h
$(WMERGE) closure.c closure.ch ansiclosure.c
ansiconflicts.o: ansiconflicts.c
ansiconflicts.c: conflicts.c conflicts.ch system.h machine.h ansinew.h files.h gram.h state.h
$(WMERGE) conflicts.c conflicts.ch ansiconflicts.c
ansiderives.o: ansiderives.c
ansiderives.c: derives.c derives.ch system.h ansinew.h types.h gram.h
$(WMERGE) derives.c derives.ch ansiderives.c
ansiLR0.o: ansiLR0.c
ansiLR0.c: LR0.c LR0.ch system.h machine.h ansinew.h gram.h state.h
$(WMERGE) LR0.c LR0.ch ansiLR0.c
ansigetargs.o: ansigetargs.c
ansigetargs.c: getargs.c getargs.ch system.h files.h
$(WMERGE) getargs.c getargs.ch ansigetargs.c
ansigram.o: ansigram.c
ansigram.c: gram.c gram.ch
$(WMERGE) gram.c gram.ch ansigram.c
ansilalr.o: ansilalr.c
ansilalr.c: lalr.c lalr.ch system.h machine.h types.h state.h ansinew.h gram.h
$(WMERGE) lalr.c lalr.ch ansilalr.c
ansilex.o: ansilex.c
ansilex.c: lex.c lex.ch system.h files.h symtab.h lex.h
$(WMERGE) lex.c lex.ch ansilex.c
ansimain.o: ansimain.c
ansimain.c: main.c main.ch system.h machine.h
$(WMERGE) main.c main.ch ansimain.c
ansinullable.o: ansinullable.c
ansinullable.c: nullable.c nullable.ch system.h types.h gram.h ansinew.h
$(WMERGE) nullable.c nullable.ch ansinullable.c
ansioutput.o: ansioutput.c
ansioutput.c: output.c output.ch system.h machine.h ansinew.h files.h gram.h state.h
$(WMERGE) output.c output.ch ansioutput.c
ansiprint.o: ansiprint.c
ansiprint.c: print.c print.ch system.h machine.h ansinew.h files.h gram.h state.h
$(WMERGE) print.c print.ch ansiprint.c
ansireader.o: ansireader.c
ansireader.c: reader.c reader.ch system.h files.h ansinew.h symtab.h lex.h gram.h
$(WMERGE) reader.c reader.ch ansireader.c
ansisymtab.o: ansisymtab.c
ansisymtab.c: symtab.c symtab.ch system.h ansinew.h symtab.h gram.h
$(WMERGE) symtab.c symtab.ch ansisymtab.c
ansiwarshall.o: ansiwarshall.c
ansiwarshall.c: warshall.c warshall.ch system.h machine.h
$(WMERGE) warshall.c warshall.ch ansiwarshall.c
ansigetopt.o: ansigetopt.c
ansigetopt.c: getopt.c getopt.ch
$(WMERGE) getopt.c getopt.ch ansigetopt.c
ansireduce.o: ansireduce.c
ansireduce.c: reduce.c reduce.ch system.h machine.h files.h ansinew.h gram.h
$(WMERGE) reduce.c reduce.ch ansireduce.c